package com.ruoyi.system.domain.project.textbook;

import java.util.Date;
import java.util.List;

import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 教材编写对象 textbook
 * 
 * @author ruoyi
 * @date 2025-10-13
 */
public class Textbook extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** id */
    private Long id;

    /** 教材类型 */
    @Excel(name = "教材类型")
    private String bookType;

    /** 教材级别 */
    @Excel(name = "教材级别")
    private String bookLevel;

    /** 版次 */
    @Excel(name = "版次")
    private String edition;

    /** ISBN */
    @Excel(name = "ISBN")
    private String isbn;

    /** 专著教材名称 */
    @Excel(name = "专著教材名称")
    private String title;

    /** 出版社 */
    @Excel(name = "出版社")
    private String publisher;

    /** 署名情况 */
    @Excel(name = "署名情况")
    private String signatureStatus;

    /** 出版物号 */
    @Excel(name = "出版物号")
    private String publicationNumber;

    /** 出版时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "出版时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date publicationDate;

    /** 印次日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "印次日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date printDate;

    /** 是否在本校使用 */
    @Excel(name = "是否在本校使用")
    private String ifSchool;

    /** 附件 */
    @Excel(name = "附件")
    private String attachmentUrl;

    /** 我的字数 */
    private String myWord;
    /** 参编者id */
    private Long userId;
    /** 参编者姓名 */
    private String userName;
    /** 排名 */
    private Long rank;
    /** 参编者承担角色 */
    private String userType;
    /** 是否第一次参编 */
    private String ifCome;

    private String currentRole;

    private Long deptId;

    private List<TextbookTeacher> textbookTeachers;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }

    public void setBookType(String bookType) 
    {
        this.bookType = bookType;
    }

    public String getBookType() 
    {
        return bookType;
    }

    public void setBookLevel(String bookLevel) 
    {
        this.bookLevel = bookLevel;
    }

    public String getBookLevel() 
    {
        return bookLevel;
    }

    public void setEdition(String edition) 
    {
        this.edition = edition;
    }

    public String getEdition() 
    {
        return edition;
    }

    public void setIsbn(String isbn) 
    {
        this.isbn = isbn;
    }

    public String getIsbn() 
    {
        return isbn;
    }

    public void setTitle(String title) 
    {
        this.title = title;
    }

    public String getTitle() 
    {
        return title;
    }

    public void setPublisher(String publisher) 
    {
        this.publisher = publisher;
    }

    public String getPublisher() 
    {
        return publisher;
    }

    public void setSignatureStatus(String signatureStatus) 
    {
        this.signatureStatus = signatureStatus;
    }

    public String getSignatureStatus() 
    {
        return signatureStatus;
    }

    public void setPublicationNumber(String publicationNumber) 
    {
        this.publicationNumber = publicationNumber;
    }

    public String getPublicationNumber() 
    {
        return publicationNumber;
    }

    public void setPublicationDate(Date publicationDate) 
    {
        this.publicationDate = publicationDate;
    }

    public Date getPublicationDate() 
    {
        return publicationDate;
    }

    public void setPrintDate(Date printDate) 
    {
        this.printDate = printDate;
    }

    public Date getPrintDate() 
    {
        return printDate;
    }

    public void setIfSchool(String ifSchool) 
    {
        this.ifSchool = ifSchool;
    }

    public String getIfSchool() 
    {
        return ifSchool;
    }

    public void setAttachmentUrl(String attachmentUrl) 
    {
        this.attachmentUrl = attachmentUrl;
    }

    public String getAttachmentUrl() 
    {
        return attachmentUrl;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("bookType", getBookType())
            .append("bookLevel", getBookLevel())
            .append("edition", getEdition())
            .append("isbn", getIsbn())
            .append("title", getTitle())
            .append("publisher", getPublisher())
            .append("signatureStatus", getSignatureStatus())
            .append("publicationNumber", getPublicationNumber())
            .append("publicationDate", getPublicationDate())
            .append("printDate", getPrintDate())
            .append("ifSchool", getIfSchool())
            .append("attachmentUrl", getAttachmentUrl())
            .toString();
    }

    public String getIfCome() {
        return ifCome;
    }

    public void setIfCome(String ifCome) {
        this.ifCome = ifCome;
    }

    public String getUserType() {
        return userType;
    }

    public void setUserType(String userType) {
        this.userType = userType;
    }

    public Long getRank() {
        return rank;
    }

    public void setRank(Long rank) {
        this.rank = rank;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }


    public String getMyWord() {
        return myWord;
    }

    public void setMyWord(String myWord) {
        this.myWord = myWord;
    }

    public Long getUserId() {
        return userId;
    }

    public void setUserId(Long userId) {
        this.userId = userId;
    }

    public List<TextbookTeacher> getTextbookTeachers() {
        return textbookTeachers;
    }

    public void setTextbookTeachers(List<TextbookTeacher> textbookTeachers) {
        this.textbookTeachers = textbookTeachers;
    }

    public String getCurrentRole() {
        return currentRole;
    }

    public void setCurrentRole(String currentRole) {
        this.currentRole = currentRole;
    }

    public Long getDeptId() {
        return deptId;
    }

    public void setDeptId(Long deptId) {
        this.deptId = deptId;
    }
}
